/*
 * @Author: 汪圣哲 wanghist061@163.com
 * @Date: 2024-03-05 22:35:46
 * @LastEditors: 汪圣哲 wanghist061@163.com
 * @LastEditTime: 2024-03-07 15:23:09
 * @FilePath: \my_backstage\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from '../utils/request'

export const getData = () => {
    return http.get('/home/getData')
}

export const getUser = (params) => {
    return http.get('/user/getUser', params)
}
export const addUser = (data) => {
    return http.post('/user/add', data)
}
export const deleteUser = (data) => {
    return http.post('/user/del', data)
}
export const editUser = (data) => {
    return http.post('/user/edit', data)
}

export const getMenu = (data) => {
    return http.post('/permission/getMenu',data)
}